QT += widgets network

TEMPLATE = app
CONFIG += c++11

DEFINES += NOMINMAX WRAPPING_CEF_SHARED
QMAKE_CXXFLAGS_WARN_ON -= -w34100

INCLUDEPATH += cef elk

HEADERS += \
    $$files(cef/include/*.h) \
    $$files(cef/include/base/*.h) \
    $$files(cef/include/base/internal/*.h) \
    $$files(cef/include/capi/*.h) \
    #$$files(cef/include/capi/views/*.h) \
    $$files(cef/include/internal/*.h) \
    #$$files(cef/include/views/*.h) \
    $$files(cef/include/wrapper/*.h) \
    $$files(cef/libcef_dll/cpptoc/*.h) \
    $$files(cef/libcef_dll/ctocpp/*.h) \
    $$files(cef/libcef_dll/wrapper/*.h) \
    $$files(cef/libcef_dll/*.h) \
    elk/internals/elk_browser_app.h \
    elk/internals/elk_browser_client.h \
    elk/internals/elk_cef_types_from.h \
    elk/internals/elk_dom_visitor.h \
    elk/elk_application.h \
    elk/elk_common_dlg.h \
    elk/elk_download_item.h \
    elk/elk_download_manager.h \
    elk/elk_download_view.h \
    elk/elk_main_wnd.h \
    elk/elk_preview_view.h \
    elk/elk_resource_view.h \
    elk/elk_web_delegate.h \
    elk/elk_web_view.h

SOURCES += \
    $$files(cef/libcef_dll/base/*.cc) \
    $$files(cef/libcef_dll/cpptoc/*.cc) \
    #$$files(cef/libcef_dll/cpptoc/views/*.cc) \
    $$files(cef/libcef_dll/ctocpp/*.cc) \
    #$$files(cef/libcef_dll/ctocpp/views/*.cc) \
    $$files(cef/libcef_dll/wrapper/*.cc) \
    $$files(cef/libcef_dll/*.cc) \
    elk/internals/elk_browser_app.cpp \
    elk/internals/elk_browser_client.cpp \
    elk/internals/elk_cef_types_from.cpp \
    elk/internals/elk_dom_visitor.cpp \
    elk/elk_application.cpp \
    elk/elk_common_dlg.cpp \
    elk/elk_download_item.cpp \
    elk/elk_download_manager.cpp \
    elk/elk_download_view.cpp \
    elk/elk_main_wnd.cpp \
    elk/elk_preview_view.cpp \
    elk/elk_resource_view.cpp \
    elk/elk_web_delegate.cpp \
    elk/elk_web_view.cpp \
    elk/main.cpp

FORMS += \
    elk/elk_download_item.ui \
    elk/elk_download_view.ui \
    elk/elk_main_wnd.ui \
    elk/elk_preview_view.ui \
    elk/elk_resource_view.ui \
    elk/elk_web_view.ui

win32 {
    LIBS += -luser32
}

CONFIG(release, debug|release) {
    LIBS += -L$$PWD/cef/Release -llibcef
    DESTDIR = $$PWD/out/Release
}
else:CONFIG(debug, debug|release) {
    LIBS += -L$$PWD/cef/Debug -llibcef
    DESTDIR = $$PWD/out/Debug
}
